package com.urbanski.clipboard.common.message;

public class CreateResponse implements Response
{
	private static final long serialVersionUID = 1L;

	public static enum CreateResponseValue
	{
		SUCCESS("Successfully created session"), SESSION_ALREADY_EXISTS("Session already exists");

		private String errorMessage;

		private CreateResponseValue(String errorMessage)
		{
			this.errorMessage = errorMessage;
		}

		public String getErrorMessage()
		{
			return errorMessage;
		}
	}

	private CreateResponseValue response;

	public CreateResponse(CreateResponseValue response)
	{
		this.response = response;
	}

	public CreateResponseValue getResponse()
	{
		return response;
	}
	
	public String getResponseText()
	{
		return response.getErrorMessage();
	}
}
